package com.pzhu.gmall.manage.controller;

import java.util.List;

import com.pzhu.gmall.bean.PmsBaseAttrValue;
import com.pzhu.gmall.service.AttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 刘鹏 liupeng
 * @date 2019/10/30
 **/
@RestController
@CrossOrigin
@RequestMapping("/attrValue")
public class AttributeValueController {
    @Autowired
    private AttributeService attributeService;

    @GetMapping("/{attrId}")
    public List<PmsBaseAttrValue>
    getPmsBaseAttrValueListByPmsPmsBaseAttrInfoId(@PathVariable("attrId") String attrId) {
       return   attributeService.getPmsBaseAttrValueListByPmsPmsBaseAttrInfoId(attrId);
    }
}
